from scrapy import cmdline

""" 导出 """
# scrapy crawl douban_spider -o test.json
# scrapy crawl douban_spider -o test.csv
cmdline.execute("scrapy crawl douban_spider -o ../test.csv".split())